package com.wzcl.app.dao.repository;


import com.wzcl.app.dao.model.ActivityGroupPromotion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ActivityGroupPromotionRepository extends JpaRepository<ActivityGroupPromotion,Integer>, JpaSpecificationExecutor<ActivityGroupPromotion> {

    List<ActivityGroupPromotion> findAllByActivityIdOrderByOrderNoDesc(Integer activityId);

    void deleteAllByActivityId(Integer activityId);
}
